package com.zx.cloud.controller.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zx.cloud.ApiVersion;
import com.zx.cloud.domain.Consultation;
import com.zx.cloud.model.response.ObjectDataResponse;
import com.zx.cloud.util.Page;


@FeignClient(name = ConsultationClient.SERVICE_ID, fallback = ConsultationClientFallback.class)
public interface ConsultationClient {

	/**
     * eureka service name
     */
    String SERVICE_ID = "trade-provider";

    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/consultation/queryConsultation", method = RequestMethod.POST)
    ObjectDataResponse<Page<Consultation>> queryConsultationApi(Consultation consultation);
	
}
